<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Controller;

use App\Common\StringUtils;
use Hyperf\Utils\ApplicationContext;
use Swoole\Coroutine\MySQL;

class IndexController extends AbstractController
{
    use StringUtils;

    public function index()
    {
        // $user = $this->request->input('user', 'Hyperf');
        $params = $this->request->all();
        // ApplicationContext::getContainer()->get(MessageRequest::class)->validated($params, __FUNCTION__);
//        $res = ApplicationContext::getContainer()->get(friendService::class)->getFriendLastMessage($params);
//        if ($res['code'] < 0)
//            return $res['data'];
//        return $res;
        return $params;
    }

}
